#define _CRT_SECURE_NO_WARNINGS 1

#include "Dlist.h"

int main()
{
	ListNode* head = ListCreate();
	
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	ListPrint(head);
	
	ListInsert(ListFind(head, 2), 22);
	ListPrint(head);

	//ListPopBack(head);
	//ListPopBack(head);
	//ListPopBack(head);
	//ListPopBack(head);
	//ListPopBack(head);
	//ListPrint(head);

	//listpushfront(head, 1);
	//listpushfront(head, 2);
	//listpushfront(head, 3);
	//listpushfront(head, 4);
	//listprint(head);
	//ListPopFront(head);
	//ListPopFront(head);

	//ListPrint(head);

	ListErase(ListFind(head, 22));
	ListPrint(head);

	ListDestory(head);
	return 0;
}